﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ASPDotNetSamples; 

public partial class Admin_RefundTransaction : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            this.DataBind();
        }
    }

    protected string PaymentAmount
    {
        get
        {
            return this.Request.QueryString[Constants.PAYMENT_AMOUNT_PARAM];
        }
    }

    protected void RefundButton_Click(object sender, EventArgs e)
    {
        Response.Redirect("RefundReceipt.aspx?" + Constants.TRANSACTIONID_PARAM + "=" + this.transactionID.Text + "&" + Constants.REFUND_TYPE_PARAM + "=" + this.refundType.SelectedValue
            + "&" + Constants.PAYMENT_AMOUNT_PARAM + "=" + this.amount.Text);
    }
}
